<?php
/**
 * Created by PhpStorm.
 * User: dayu
 * Date: 2019/12/16
 * Time: 10:50
 */

namespace app\Validate;


class TestValidate extends RequestValidate
{

    protected function rulesList()
    {

        switch ($this->action){
            case 'dataList':
                return [

                    'name' => 'require|max:25',
                    'num' => 'require|number|between:1,120',
                ];
                break;
        }
    }


    protected function messagesList()
    {
        return [

        ];

    }


}